<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="/static/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/static/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="/static/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<!--[if IE 7]>
<link href="/static/lib/font-awesome/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<link href="/static/lib/iconfont/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<script type="text/javascript" src="/static/lib/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/static/lib/ueditor/ueditor.all.min.js"></script>
<title>添加栏目</title>
<style>
select[multiple], select.form-control[multiple] {
    height: auto;
}
</style>
</head>
<body>
<div class="pd-20">
	<form action="/admin/nav/saveOrUpdate" method="post" class="form form-horizontal" id="form-nav-add">
		<div id="tab-category" class="HuiTab">
			<div class="tabBar cl"><span>添加栏目</span></div>
			<div class="tabCon">
				<div class="row cl">
					<label class="form-label col-3"><span class="c-red">*</span>栏目名称：</label>
					<div class="formControls col-6"> 
						<input type="text" class="input-text" value="" placeholder="" name="name" datatype="*2-16" nullmsg="栏目名称不能为空"> </div>
					<div class="col-3"> </div>
				</div>
				<div class="row cl">
					<label class="form-label col-3"><span class="c-red">*</span>路径url：</label>
					<div class="formControls col-6">
						<input type="text" class="input-text" value="" placeholder=""  name="url">
					</div>
					<div class="col-3"> </div>
				</div>
				<div class="row cl">
					<label class="form-label col-3">优先级：</label>
					<div class="formControls col-6">
						<input type="text" class="input-text" value="" placeholder="" name="en">
					</div>
					<div class="col-3"> </div>
				</div>
				<div class="row cl">
					<label class="form-label col-3">是否启用：</label>
					<div class="formControls col-6 skin-minimal">
						<div class="check-box">
							<input type="checkbox" id="checkbox-pinglun" name="status" value="1" >
							<label for="checkbox-pinglun">&nbsp;</label>
						</div>
					</div>
					<div class="col-3"> </div>
				</div>
			</div>
		</div>
		<div class="row cl">
			<div class="col-9 col-offset-3">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
</div>
<script type="text/javascript" src="/static/lib/jquery.min.js"></script> 
<script type="text/javascript" src="/static/lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="/static/lib/Validform/5.3.2/Validform.min.js"></script> 
<script type="text/javascript" src="/static/lib/layer2.1/layer.js"></script>
<script type="text/javascript" src="/static/js/H-ui.js"></script> 
<script type="text/javascript" src="/static/js/H-ui.admin.js"></script> 
<script type="text/javascript" src="/static/js/H-ui.admin.doc.js"></script>
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$("#form-nav-add").Validform({
		btnSubmit:"#btnSubmit",
		btnReset:"#btnReset",
		ajaxPost:true,
		tiptype:2,
		callback:function(data){
			if(data.code!="1006"){
				layer.msg(data.description,{time: 1000, icon:6});
			}else{
				layer.msg(data.description,{time: 1000, icon:6},function(){
					var index = parent.layer.getFrameIndex(window.name);
					parent.window.getDataList();
					parent.layer.close(index);
				});
				
			}
			
		}
	}); 
	$.Huitab("#tab-category .tabBar span","#tab-category .tabCon","current","click","0");
});
</script>
</body>
</html>